package com.example.demo.service.impl;

import com.example.demo.bean.User;
import com.example.demo.dao.UserMapper;
import com.example.demo.service.UserService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Service
public class UserSericeImpl implements UserService {//业务实现类
    @Autowired
    UserMapper userMapper;
    @Override
    public User queryUser(User user) {
        return userMapper.queryUser(user);
    }
    public User queryUser2(User user) {
        return userMapper.queryUser2(user);
    }
    public int updateUser(User user){ return userMapper.updateUser(user); }
    public int insertUser(User user){return userMapper.insertUser(user); }

    @Override
    public List<User> queryUserList(User user) {
        return userMapper.queryUserList(user);
    }
}